package two_chouxianglei;

public class Demo {
    public static void main(String[] args) {
//        Animal a = new Cat();
        Cat cat = new Cat() {
            @Override
            public void show() {
                System.out.println("抽象方法里的抽象类");
            }
        };
        cat.show();


        // 想试试lambda表达式
        Animal animal = () -> System.out.println("编译器教我的");
        animal.lambdaShow();



    }
}
